<ion-view view-title="黄金宝" >
    <ion-nav-buttons side="left">
        <back-button></back-button>
    </ion-nav-buttons>
    <ion-content ng-class="{'has-loading': isOffline}">

        <ion-refresher pulling-text={{PULLING_TEXT}} pulling-icon="" refreshing-text={{REFRESHING_TEXT}}
                       on-refresh="doRefresh()"></ion-refresher>

        <!-- promo -->
        <input type="hidden" ng-model="channel.title" value="LPAUGBPOZ.IDC" keep-current-value/>

        <channel-img></channel-img>
        <!-- unlimited -->
        <div class="unlimited">
            <!-- gold -->
            <div class="gold on">
                <dl>
                    <dt><img src="../../common/img/jkf/product/gold-1_100x100.jpg" alt="国际金价" /></dt>
                    <dd>
                        <h2>国际金价<span id="glod_price">{{gold.index_close/28.35 | defNumber : 2 : '元/克'}}</span></h2>
                        <div class="increase" id="gold_income">
                            <p ng-if="gold.price_increase_year">近一年涨幅<em ng-class="{inc_: gold.price_increase_year < 0}">{{gold.price_increase_year | defNumber :2 : '%'}}</em></p>
                            <p ng-if="!gold.price_increase_year"><em class="inc_"></em></p>
                            <p>近半年涨幅<em ng-class="{inc_: gold.price_increase_month6 < 0}">{{gold.price_increase_month6 | defNumber :2 : '%'}}</em></p>
                        </div>
                    </dd>
                </dl>
                <!-- chart -->
                <div class="chart" >
                    <!--<div class="mask"></div>-->
                    <time id="data_date">金价指数走势更新日期：{{data_date}}</time>
                    <highchart config="goldChartConfig"></highchart>
                </div>
                <!-- related -->
                <div class="related">
                    <div class="hd">相关基金</div>
                    <div  id="contents">
                        <a href="#/tab/product-item-QDII/{{fund.prod_code}}" ng-repeat="fund in funds">
                            <div class="item">
                                <h3>{{fund.prod_name | defString}}</h3>
                                <p ng-if="fund.prod_status!=4" class="increase">近一年涨幅<em ng-class="{inc_: fund.price_increase_year < 0 }">{{fund.price_increase_year | defNumber :2 :'%'}}</em></p>
                                <p ng-if="fund.prod_status==4" class="increase">认购截止日<em >{{fund.ipo_end_date | defDateString}}</em></p>
                                <p>已售出<em>{{fund.prod_scale | defNumber : 2}}亿份</em><br />起购金额<em>{{fund.prod_min_subscribe | prodMinSubscribe : 2}}</em></p>
                            </div>
                        </a>
                    </div>
                </div>
            </div>
        </div>
    </ion-content>
</ion-view>